from selenium import webdriver
from selenium.webdriver.common.by import By
import time

driver = webdriver.Chrome()
driver.get("https://baidu.com")

kw = driver.find_element(By.ID,'kw')
kw.send_keys("哈哈哈哈")

time.sleep(2)

# su = driver.find_element(By.ID,'su')
# su.click()
kw.submit()

time.sleep(2)

kw.clear()
kw.send_keys("nba")
# su.click()
kw.submit()

time.sleep(4)
driver.quit()
